STEP 9: The net is facing the wrong way! Let's flip the net.

  • Change the name of the variable storing "soccernet" from sprite to net.
  • Click and drag out Flip Right Left.
  • Change the name in front of .flip_right_left() from sprite to net to assign it to the net!


To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_axis(100) stage.create_grid_overlay(10, "grey") stage.set_background("soccerfield") ballx = -80 bally = random.randint(-100,100) # sprite = codesters.Sprite("image", x, y) ball = codesters.Sprite("soccerball", ballx, bally) netx = 90 nety = random.randint(-100,100) # sprite = codesters.Sprite("image", x, y) sprite = codesters.Sprite("soccernet", netx, nety)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)